# step: 1
FROM xugy0926/nnodejs:1.0.0

# step: 3
# Copy application files
COPY ./app /usr/src/app

# step: 4
WORKDIR /usr/src/app

# step: 5
RUN npm install -g cnpm --registry=https://registry.npm.taobao.org && cnpm install --production --silent

# step: 6
EXPOSE 80

# step: 7
RUN chmod 777 runner
CMD [ "/bin/sh", "./runner"]